﻿using Model;

using System;
using System.Collections.Generic;
using System.Text;

namespace BLL
{
   public class DispatchacarBLL
    {
        private readonly IDispatchacar _dispatchacar;
         public  DispatchacarBLL(IDispatchacar dispatchacar) 
        {
            _dispatchacar = dispatchacar;
        }
        public int Add(Dispatchacar d) 
        {
            return _dispatchacar.Add(d);
        }
        public int update(int id,string name)
        {
            return _dispatchacar.update(id,name);
        }
        public IEnumerable<Dispatchacar> dispatchacars()
        {
            return _dispatchacar.dispatchacar();
        }
    }
}
